GBML manual / Screen

overlay_stop

Stops the overlay effect that is playing, if there is one, and puts the screen back the way it was. It does nothing when no overlay is playing.

Works differently on Game Boy - The Game Boy puts everything the effect changed back at once: the shades, the scroll and the picture under a wipe.

Works differently on Game Boy Color - The Game Boy Color puts everything the effect changed back at once: the colors, the scroll and the picture under a wipe.

Works differently on Sega Genesis - The Sega Genesis plays overlay effects its own way.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

overlay_stop()

Returns

Nothing.

Description

Stops the overlay effect that is playing, if there is one, and puts the screen back the way it was. It does nothing when no overlay is playing.

It only stops what the overlay started. A screen_blend or screen_mosaic you called yourself, on something the overlay does not use, is left alone.

Example

overlay_stop();

The screen goes back to normal at once.

On the GBA

Hands back every row-by-row effect the overlay held, at once. It only stops what the overlay started: a screen_blend or screen_mosaic you called yourself on something the overlay does not use is left alone.

See also: Overlay effects - screen effects you make yourselfoverlay_startoverlay_active